package desktop_tests;

import java.util.ArrayList;

import common.GUIColor;

import desktop_codebehind.DesktopGUICar;
import desktop_fields.Brewery;
import desktop_fields.Chance;
import desktop_fields.Empty;
import desktop_fields.DesktopField;
import desktop_fields.Jail;
import desktop_fields.Refuge;
import desktop_fields.Shipping;
import desktop_fields.Start;
import desktop_fields.Street;
import desktop_fields.Tax;
import gui.G;

public class TestCreate {
    
    public static void main(String[] args) {
        ArrayList<DesktopField> list = new ArrayList<DesktopField>();
        
        list.add(new Start.Builder().setTitle("Title").setBgColor(GUIColor.RED).build());
        list.add(new Tax.Builder().build());
        list.add(new Street.Builder().build());
        list.add(new Shipping.Builder().build());
        list.add(new Refuge.Builder().build());
        list.add(new Jail.Builder().build());
        list.add(new Chance.Builder().build());
        list.add(new Empty.Builder().build());
        list.add(new Empty.Builder().setBgColor(GUIColor.MAGENTA).build());
        list.add(new Empty.Builder().setFgColor(GUIColor.YELLOW).build());
        list.add(new Brewery.Builder().build());
        
        DesktopField[] fields = new DesktopField[list.size()];
        for(int i = 0; i < fields.length; i++) fields[i] = list.get(i);
        
        G.android = false;
      
        G.create(fields);
        DesktopGUICar car = new DesktopGUICar.Builder()
            .typeRacecar()
            .primaryColor(GUIColor.BLUE)
            .secondaryColor(GUIColor.RED)
            .patternDiagonalDualColor()
            .build();
        G.addPlayer("Sebastian Vettel", 25000, car);
    }
}
